package com.dg.cuckoo.admin.service.impl;

import com.dg.cuckoo.admin.dto.compilation.GovernmentMoneyDto;
import com.dg.cuckoo.admin.service.ExpertiseOtherService;
import com.dg.cuckoo.admin.service.GovernmentMoneyService;
import com.dg.cuckoo.common.utils.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

@Service
public class ExpertiseOtherServiceimpl implements ExpertiseOtherService {

    @Autowired
    private GovernmentMoneyService service;


    @Transactional
    @Override
    public void save(GovernmentMoneyDto dto, MultipartFile[] files) throws Exception {
        service.powerfulSave(dto,files);
    }

    @Override
    public void update(String id, GovernmentMoneyDto dto, MultipartFile[] files) throws Exception {
        service.powerfulUpdate(id,dto,files);
    }

    @Override
    public PageModel page(Integer page, Integer pageSize) {
        return service.powerfulPage(page,pageSize,9);
    }

}
